package com.sss.hloster0306;

public class Vehicle {
	private String brand;// 品牌
	private String color;// 颜色
	private double speed;// 速度
	public Vehicle(String brand, String color) {
		super();
		this.brand = brand;
		this.color = color;
		this.speed=0;
		
		
	}
	public Vehicle() {
		super();
	}
	public void run() {
		System.out.println("车辆品牌为："+this.brand+"  颜色为："+this.color+"色  ，  速度为："+this.speed+"km/h");
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public double getSpeed() {
		return speed;
	}
	public void setSpeed(double speed) {
		this.speed = speed;
	}

}
